package spring.learn.core.ioc;

import org.springframework.context.support.ClassPathXmlApplicationContext;
import spring.learn.core.ioc.data.PetService;

public class UseXml {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context =
                new ClassPathXmlApplicationContext("classpath:pet.xml");
        PetService petService = context.getBean("petService", PetService.class);
        System.out.println(petService.getPetUserList());

    }
}
